#!/bin/bash

image="$1"

for size in 96-xhdpi 72-hdpi 48-mdpi 36-ldpi; do
  IFS=- read pixels drawdir <<<"$size"
  convert "$image" -adaptive-resize ${pixels}x${pixels} "../res/drawable-${drawdir}/$image"
done
